package me.jollyfly.jshop.user.server.service;


import me.jollyfly.jshop.common.bean.ResultBean;
import me.jollyfly.jshop.user.client.model.UserDO;

/**
 * @author jollyfly
 */
public interface UserService {

    /**
     * 注册业务
     *
     * @param userDO 用户数据访问对象
     */
    void register(UserDO userDO);

    /**
     * 登录业务
     *
     * @param userDO
     *
     * @return
     */
    ResultBean<String> login(UserDO userDO);

    UserDO getByUsername(String username);
}
